﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompletedTask.aspx.cs" Inherits="BasePages_CompletedTask" %>
<%@ Register Assembly="YYWebControl" Namespace="YYWebControl.YYSimpleCalendar" TagPrefix="YYWebControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <LINK href="../CSS/hfmanger.css" type="text/css" rel="stylesheet">
</head>
<body onload="remove_loading();">
    <form id="form1" runat="server">
                <table width="100%"  cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="left" class="toolbar" style="height: 23px; width: 917px;" valign="middle" colspan="3">
                   <asp:Image ID="Image1" runat="server" ImageUrl="../images/rss_2.gif" /><strong>已完成任务</strong></td>
                    </tr>
                    <tr>
                        <td align="left"  class="blackbar" valign="middle" colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td align="center"colspan="3" style="height: 15px; background-color: white; width: 917px;" valign="middle">
                            <table style="width: 98%">
                                <tr>
                                    <td   class="listContent">
                  <asp:CheckBox ID="cbxWorkflowCaption" runat="server" Text="业务名:" /><asp:TextBox ID="tbxFlowInsCaption" runat="server" Width="131px"></asp:TextBox><asp:CheckBox ID="cbxDatetime" runat="server" Text="到达时间：从" /><YYWebControl:YYSimpleCalendar ID="YYSimpleCalendar1" runat="server" />
                    到
                    <YYWebControl:YYSimpleCalendar ID="YYSimpleCalendar2" runat="server" />
                            <asp:ImageButton ID="ImageButton1" runat="server" Height="20px" ImageUrl="../images/查询.gif"
                                Width="39px" OnClick="ImageButton1_Click" /></td>
                                </tr>
                                </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="left"  colspan="3" class="blackbar" valign="middle"> 
                        &nbsp;&nbsp;
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/0.ico" />
                    正常任务&nbsp;&nbsp;&nbsp;&nbsp; 
                    <asp:Image ID="Image3" runat="server" ImageUrl="~/images/5.ico" />
                            指派或退回的任务</td>
                    </tr>
                    <tr>
                        <td colspan="3" align=center style="height: 806px" valign="top"  > 
                            <table width="98%">
                                <tr>
                                    <td  class="listContent">
                            <asp:GridView ID="gvCompletedTask" runat="server" AutoGenerateColumns="False"  PageSize="5" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowDataBound="gvCompletedTask_RowDataBound" >
                                <Columns>
                                 <asp:ImageField DataImageUrlField="status" DataImageUrlFormatString="../images/{0}.ico">
                            </asp:ImageField>
                                    <asp:BoundField DataField="WorkFlowNo" HeaderText="流程编号">
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                     <asp:HyperLinkField DataNavigateUrlFields="WorkTaskInstanceId,OperatorInstanceId" DataTextField="FlowInstanceCaption"
                                HeaderText="业务名" DataNavigateUrlFormatString="WorkTaskCtrlPage.aspx?WorkTaskInstanceId={0}&amp;OperatorInstanceId={1}&amp;state=查看" Target="_blank" >
                                <ItemStyle Width="200px" />
                            </asp:HyperLinkField>
                                    <asp:BoundField DataField="TaskCaption" HeaderText="任务名">
                                        <ItemStyle Width="150px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="pOperatedDes" HeaderText="提交人">
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Priority" HeaderText="优先级">
                                        <HeaderStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="taskStartTime" HeaderText="开始时间" >
                                    <ItemStyle Width="200px" />
                                    </asp:BoundField >
                                    <asp:BoundField DataField="taskEndTime" HeaderText="结束时间" >
                                    <ItemStyle Width="200px" />
                                    </asp:BoundField>
                                    <asp:HyperLinkField DataNavigateUrlFields="workflowId,workFlowInstanceId" Text="流程图" HeaderText="查看" DataNavigateUrlFormatString="WorkflowMap.aspx?workflowId={0}&amp;workFlowInstanceId={1}" Target="_blank">
                                    <ItemStyle Width="70px" />
                                    </asp:HyperLinkField>
                                    <asp:BoundField DataField="TaskInsDescription" HeaderText="备注">
                                    <ItemStyle Width="100px" />
                                </asp:BoundField>
                                </Columns>
                                <HeaderStyle HorizontalAlign="Left" CssClass="gridHead" />
                                <FooterStyle Font-Bold="True" />
                                <RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
                                <PagerStyle HorizontalAlign="Left" CssClass="anpager" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <EditRowStyle BackColor="#2461BF" />
                                <AlternatingRowStyle BackColor="White" />
                                <PagerSettings FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PreviousPageText="上一页" Mode="NumericFirstLast" PageButtonCount="5" />
                            </asp:GridView>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                           </td>
                    </tr>
                </table>

    </form>
</body>
</html>
